<?php
class Job extends BaseData {
	private $id; 
	private $userId; 
	private $name; 
	private $status; 
	
	public function Job(){}
	
	public function setId($val){$this->id = $val;}
	public function setUserId($val){$this->userId = $val;}
	public function setName($val){$this->name = $val; }
	public function setStatus($val){$this->status = $val; }
	
	public function getId(){return $this->id;}
	public function getUserId(){return $this->userId;}
	public function getName(){return $this->name;}
	public function getStatus(){return $this->status; }
	
	public function copy(Job $current){
		if($current != null){
			$this->id = $current->id; 
			$this->userId = $current->userId;
			$this->name = $current->name; 
			$this->status = $current->status;
		}
		else {
			throw new Exception('Job: attempting to copy an empty object');
		}
	}
}
?>
